1. Decide on a PICT file to use (try the included Robot.PICT file).
2. Run Pict2ppat.
3. Click the Get Pict button, then open the PICT file to use.
4. Click on either of the two Mountain (scale) buttons to change the size of the rectangle that is used to select a part of the PICT.
5. Click on the rectangle that covers part of the PICT in the right of the window and drag the rectangle to cover the desired part of the PICT.
6. Release the mouse button, the click and release again.
7. Select a ppat size (32x32, 64x64, or 128x128, the example program uses 64x64).
8. Click the Preview button to see how the ppat will look when repeated in a window.
9. Repeat above steps until satisfied with the ppat.
10. Click the Create ppat button.
11. Name the new ppat resource, then click OK. It will be saved to a file named 'ppat' File.
12. Launch your resource editor.
13. Open your project's resource file and the 'ppat' File created by Pict2ppat.
14. Copy the ppat resource from the 'ppat' File and paste to your project's resource file.
(Note: Using ResEdit, double-clicking on the ppat to edit it may result in "corrupt resource" alert. Ignore this. Using Resorcerer to edit works fine.)
15. Close the 'ppat' File (*IMPORTANT: close this file before using Pict2ppat again).
15. Renumber the ppat resource to an ID of your choosing.
16. Save and close your project's resource file.
Using a ppat resource in your source code:
17. From within your project's source code, do the following:
a. Open a *color* window ( GetNewCWindow() ).
b. Load the new ppat resource.
c. Set the pen pattern to the loaded ppat.
d. All pattern drawing will now use this pattern (lines, rects, etc.).